@extends('admin.main')
@section('body')
<div class="main-title">
    <h2>水票充值 ({{$shop['shop_name']}})</h2>
</div>
<div class="tab-wrap">
    <div class="tab-content">
        <form action="" method="post" class="form-horizontal">
            <!-- 基础 -->
            <div id="tab1" class="tab-pane in tab1">
                <div class="form-item">
                    <label class="item-label">
                        客户名称：<span class="check-tips">{{$member['name']}}</span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        客户电话：<span class="check-tips">{{$member['mobile']}}</span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        客户地址：<span class="check-tips">{{$member['address']}}</span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        选择水票：
                            <span class="check-tips">
                                <select name="bill_id" id="bill_id">
                                    @if(count($waterBill))
                                        @foreach($waterBill as $v)
                                            <option value="{{$v['id']}}">{{$v['goods_name']}}</option>
                                        @endforeach
                                    @endif
                                </select>
                            </span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        水票数量：
                            <span class="check-tips">
                                <input type="text" name="waterbill_num" class="text input-small" value="0">
                            </span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                        收款金额：
                            <span class="check-tips">
                                <input type="text" name="money" class="text input-small" value="0">
                            </span>
                    </label>
                </div>
                <div class="form-item">
                    <label class="item-label">
                    </label>
                </div>
            </div>
            <!-- 高级 -->
            <div class="form-item">
                <input type="hidden" name="id" value="{{isset($member['id']) ? $member['id'] : ''}}">
                <button type="submit" id="submit" class="btn submit-btn ajax-post" target-form="form-horizontal">确 定
                </button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>
        </form>
    </div>
</div>
@endsection
